<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {if $config.upload.cdnurl}
    <div class="form-group">
        <label for="c-third" class="control-label col-xs-12 col-sm-2">{:__('Upload to third')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[third]" id="c-third" class="form-control"/>
            <ul class="row list-inline faupload-preview" id="p-third"></ul>
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">预览图：</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[url]" id="c-local" class="form-control" data-rule="required" />
            <ul class="row list-inline faupload-preview" id="p-local"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">

            <button type="button" id="faupload-local" class="btn btn-primary faupload" data-input-id="c-local" data-multiple="true" data-preview-id="p-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("上传")}</button>
            {if $config.upload.chunking}
            <button type="button" id="faupload-local-chunking" class="btn btn-primary faupload" data-chunking="true" data-maxsize="1gb" data-input-id="c-local" data-multiple="true" data-preview-id="p-local" data-url="{:url('ajax/upload')}"><i class="fa fa-upload"></i> {:__("Upload to local by chunk")}</button>
            {/if}
        </div>
    </div>

    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">产品名称：</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[name]" id="c-local" class="form-control" data-rule="required" placeholder="请输入名称"/>
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label for="c-local" class="control-label col-xs-12 col-sm-2">宽度：</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input type="number" name="row[width]" id="c-local" class="form-control" data-rule="required" placeholder="请输入宽度"/>-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label for="c-local" class="control-label col-xs-12 col-sm-2">高度：</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input type="number" name="row[height]" id="c-local" class="form-control" data-rule="required" placeholder="请输入高度"/>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">规格：</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[spec]" id="c-local" class="form-control" data-rule="required" placeholder="请输入规格"/>
        </div>
    </div>

    <div class="form-group">
        <label for="c-local" class="control-label col-xs-12 col-sm-2">尺寸要求/图号：</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" data-required="required" placeholder="请输入尺寸要求/图号" name="row[size]" style="height: 100px"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态：</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('正常'), '-1'=>__('异常')], 1)}
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
